package com.example.qxfw.ybzz.service.impl;

import com.example.qxfw.common.entity.qx.YbzzForecastshuzhi;
import com.example.qxfw.ybzz.mapper.YbzzForecastshuzhiMapper;
import com.example.qxfw.ybzz.service.YbzzForecastshuzhiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class YbzzForecastshuzhiServiceImpl implements YbzzForecastshuzhiService {

    @Autowired
    private YbzzForecastshuzhiMapper ybzzForecastshuzhiMapper;

    @Override
    public List<YbzzForecastshuzhi> getList(String timespan, String param1, String param2, String forecastType) {
        List<YbzzForecastshuzhi> ybzzForecastshuzhis = ybzzForecastshuzhiMapper.selectList(timespan, param1, param2, forecastType);
        return ybzzForecastshuzhis;
    }

    @Override
    public Integer delete(String timespan, String param1, String param2, String forecastType) {
        int rows = ybzzForecastshuzhiMapper.delete(timespan,param1,param2,forecastType);
        return rows;
    }

    @Override
    public Integer save(YbzzForecastshuzhi ybzzForecastshuzhi) {
        int rows = ybzzForecastshuzhiMapper.insert(ybzzForecastshuzhi);
        return rows;
    }
}
